package com.kkks.spring_rest.tick.model;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * AbstractWhoOrderJoinLog entity provides the base persistence definition of
 * the WhoOrderJoinLog entity. @author MyEclipse Persistence Tools
 */
@MappedSuperclass
public abstract class AbstractWhoOrderJoinLog implements java.io.Serializable {

	// Fields

	private Integer logId;
	private String fromOrderSn;
	private String toOrderSn;
	private String newOrderSn;
	private Integer newOrderId;
	private Integer addTime;
	private Integer adminId;
	private String adminName;

	// Constructors

	/** default constructor */
	public AbstractWhoOrderJoinLog() {
	}

	/** full constructor */
	public AbstractWhoOrderJoinLog(String fromOrderSn, String toOrderSn,
			String newOrderSn, Integer newOrderId, Integer addTime,
			Integer adminId, String adminName) {
		this.fromOrderSn = fromOrderSn;
		this.toOrderSn = toOrderSn;
		this.newOrderSn = newOrderSn;
		this.newOrderId = newOrderId;
		this.addTime = addTime;
		this.adminId = adminId;
		this.adminName = adminName;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "log_id", unique = true, nullable = false)
	public Integer getLogId() {
		return this.logId;
	}

	public void setLogId(Integer logId) {
		this.logId = logId;
	}

	@Column(name = "from_order_sn", nullable = false, length = 50)
	public String getFromOrderSn() {
		return this.fromOrderSn;
	}

	public void setFromOrderSn(String fromOrderSn) {
		this.fromOrderSn = fromOrderSn;
	}

	@Column(name = "to_order_sn", nullable = false, length = 50)
	public String getToOrderSn() {
		return this.toOrderSn;
	}

	public void setToOrderSn(String toOrderSn) {
		this.toOrderSn = toOrderSn;
	}

	@Column(name = "new_order_sn", nullable = false, length = 50)
	public String getNewOrderSn() {
		return this.newOrderSn;
	}

	public void setNewOrderSn(String newOrderSn) {
		this.newOrderSn = newOrderSn;
	}

	@Column(name = "new_order_id", nullable = false)
	public Integer getNewOrderId() {
		return this.newOrderId;
	}

	public void setNewOrderId(Integer newOrderId) {
		this.newOrderId = newOrderId;
	}

	@Column(name = "add_time", nullable = false)
	public Integer getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Integer addTime) {
		this.addTime = addTime;
	}

	@Column(name = "admin_id", nullable = false)
	public Integer getAdminId() {
		return this.adminId;
	}

	public void setAdminId(Integer adminId) {
		this.adminId = adminId;
	}

	@Column(name = "admin_name", nullable = false, length = 60)
	public String getAdminName() {
		return this.adminName;
	}

	public void setAdminName(String adminName) {
		this.adminName = adminName;
	}

}